<?php get_header(); ?>
<div class="container" id="top_info">
	<div class="top-content">&nbsp;</div>
    <div class="top-curve">&nbsp;</div>
</div>

<div class="container">
	
	<?php 
		$sliders = get_post_meta($post->ID, 'dmci_page_slider', true);
		$slider_title = get_post_meta($post->ID, 'dmci_page_slider_title', true);
		$slider_desc = get_post_meta($post->ID, 'dmci_page_slider_desc', true);
		
		if( !empty($sliders) ):
		$sliders = json_decode(htmlspecialchars_decode($sliders), true);
		
	?>
	

	<div class="page-slider-wrapper">
    <div class="page-slider">
		
		<?php foreach($sliders as $slide) :?>
        <div class="slide">
        	<img src="<?php echo $slide; ?>" alt="image1" />
        </div>		
		<?php endforeach;?>
        
    </div>
	<div class="slider-text">
        <div class="title"><?php echo $slider_title; ?></div>
     	<div class="desc"><?php echo $slider_desc; ?></div>
    </div>
    </div>
	<?php else: ?>
		<div class="page-filler">&nbsp;</div>
	<?php endif; ?>
	
	<div class="page-content padded">
	<?php if (have_posts()) : ?>
    	    
		<?php 
            while ( have_posts() ) : the_post(); 
                the_content(); 
            endwhile; 
        else: 
		?>   
        
        <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
		
		<?php endif; ?>	
	</div>
</div>
<?php get_footer(); ?>